import http from './http'
import axios from 'axios'
// 发送邮件验证码
export function sendEmailCode(data) {
  return axios({
    method: 'post',
    url: '/users/sendEmail',
    data
  })
}
// 注册接口
export function userRegister(data) {
  return axios({
    method: 'post',
    url: '/users/register',
    data
  })
}
// 登录接口
export function userLogin(data) {
  return axios({
    method: 'post',
    url: '/users/login',
    data
  })
}
// 获取用户信息
export function getUserInfo(data) {
  return axios({
    method: 'get',
    url: '/users/getUserInfo',
    params: {
      data
    }
  })
}
